package com.proxy;

/**
 * 代理
 *
 * @author dell
 *
 */
public class SpaceShipProxy {

	private String name;

	private SpaceShipControl spaceShipControl = new SpaceShipControl();

	public SpaceShipProxy(String name) {
		this.name = name;
	}

	void up(int velocity) {
		spaceShipControl.up(velocity);
	}

	void down(int velocity) {
		spaceShipControl.down(velocity);
	}

	public static void main(String[] args) {
		SpaceShipProxy spaceShipProxy = new SpaceShipProxy("AAA");
		spaceShipProxy.up(10);
	}

}
